package com.sky.controller.online_pay;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: sky-take-out
 * @Author: XieMingHui
 * @CreateTime: 2023-11-29  17:16
 * @Description: 支付宝支付
 * @Version: 1.0
 */
@RestController
@RequestMapping("/alipay")
public class ALiPayController {

    // 配置参数:沙箱版
    //应用ID
    private String appID = "9021000132644797";
    //商户PID
    private String shpoID = "2088721023269875";
    //支付宝网关
    private String alipayGateway = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
    //私钥
    private String shopKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCOZszwJqtBViw+5hyPehB5XK/jqLivRfkFxca0Hj5o/w3Pm7jRHEXj5tVkXTe+D0uF+yCNfSqF9vHCC6FhvhNPOU9eDjF5KrEUL3VZ7YRFGlHStefa5MhtGnqWaSY2qoiKVSHHXn6VqqyVQex3MaKBoMtjRDvteDbS/BDyx/4c9uG7zntI3PRa3XSGTZQLFojKiQjDoT0W6M4Mj1cZGFvdBhCGgPmrwVq20dpn6UqZ4QK2WLP6nnTeTT36wm4wvhIW4xvk5XcvOtDXMCo/i4dqROvWs8RIGmccvlsuTEia2pSG1bLWEfz7oxU1ugPyW0X1sixWpATtq4NtUaKWEL73AgMBAAECggEBAIKeRQlbTubldjxTsorguk+39xZp4s3S7zKeUT9SJokEutRd0E7vEiSTzdT7tG+/c9T3nsppryGme+cz59nSEcAvn190wWiVAkyzo37TYOpJ1BflB0E/baC2Ew/4bzbhgdDxecR4JsB+B0P5bj9+5cLljOoG4rlV9WPeFmW7kJlbcSJwzY3dsTZKzt5bduvzmeXrr7CqGFRIoxB41KpPGq4WQoxd/aTZLpdV7byboVvpOyUYP8yEho7H/WVjrSi9oRlqiT+p+cmY485GDy5ujjiqoyAZN1tS8/rBTwkKMBvmbLoECvWJ/28nwuEUbWH396S+ieMWOl08BkUW9ttJyyECgYEA3m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HWfl+xVNRf5yS3PEyAfaD/SEQuvQUq15//IHp8btbmyMPMA+jNn/PoINaPhkPXLIsOgznBwx6NupuCDTJaBpVHLyDaUSIBo6M7Hhg6MvFhi6N0L2fgwSD5qVmmBJvt/O1Ln94Gi1MpCq114vWeL3DJREMgNzv8C4kso2fp+5po6iBgaeNa1og9EuNEvvjV9RSW9TqtkNWZwIDAQAB";

    //接口内容加密秘钥
    private String contentKey ="p4VLOoJ1PJ6yliRXMGA/LQ==";

    //跳转同步通知我们的页面路径
    private String syncUrl = "2021004128672036";
    //服务器异步通知我们的路径,每次重新启动都需要重新获取后再配置
    private String asyncUrl = "2021004128672036";

    @PostMapping
    private void alipay(){

    }
}
